package Centralisateur.CentralisateurImplementation;

public class LogIndex
{
	/** Logical time allowing to sort the log fragments. */
	private int _logicalTime;
	/** Offset in the log file of the log fragment data. */
	private int _offset;
	/** Length of the log fragment data. */
	private int _length;

	/** Create a new fragment. */
	public LogIndex(int logicalTime, int offset, int length)
	{
		_logicalTime = logicalTime;
		_offset = offset;
		_length = length;
	}

	public int getLogicalTime()
	{
		return _logicalTime;
	}

	public int getOffset()
	{
		return _offset;
	}

	public int getLength()
	{
		return _length;
	}
}